{extend name="web/public/base" /}
{block name="header"}
{/block}
{block name="main"}
<section class="scrollable padder">
    <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
        <li><a><i class="fa fa-home"></i> 首页</a></li>
        <li class="active">报表</li>
        <li class="active">{$title}</li>
    </ul>
    <div class="row">
        <div class="col-sm-12">
            <section class="panel panel-default">
                <header class="panel-heading">  {$title}&nbsp;&nbsp;&nbsp;&nbsp;(收入累计额:{$totalProfit|format_num};&nbsp;&nbsp;提现累计额:{$totalWd|format_num};&nbsp;&nbsp;累计结余:{$totalProfit-$totalWd|format_num})</header>
                {include file="web/public/search" /}
                {notempty name="_list"}
                <div class="table-responsive">
                    <table class="table table-striped table-hover b-t b-light text-sm">
                        <thead>
                        <tr>
                            <th>日期</th>
                            <th>公司vip产品收入</th>
                            <th>钻石合伙人vip收入</th>
                            <th>金牌合伙人vip收入</th>
                            <th>银牌合伙人vip收入</th>
                            <th>商城产品收入</th>
                            <th>拓客产品收入</th>
                            <th>免费试用产品收入</th>
                            <th>积分加现金区域收入</th>
                            <th>当日提现额</th>
                            <th>当日总收入</th>
                            <th>当日结余</th>
                        </tr>
                        </thead>
                        <tbody>
                        {volist name='_list' id='vo'}
                        <tr>
                            <td>{$vo.date}</td>
                            <td>{$vo.profit1|format_num}</td>
                            <td>{$vo.profit2|format_num}</td>
                            <td>{$vo.profit3|format_num}</td>
                            <td>{$vo.profit4|format_num}</td>
                            <td>{$vo.profit5|format_num}</td>
                            <td>{$vo.profit8|format_num}</td>
                            <td>{$vo.profit7|format_num}</td>
                            <td>{$vo.profit6|format_num}</td>
                            <td>{$vo.wd|format_num}</td>
                            <td>{$vo.profit|format_num}</td>
                            <td>{$vo['profit']-$vo['wd']|format_num}</td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                </div>
                <footer class="panel-footer">
                    <div class="row">
                        <div class="text-right text-center-xs">
                            {$page}
                        </div>
                    </div>
                </footer>
                {else/}
                <div style="text-align: center">
                    <image src="__PUBLIC__/images/empty.jpg"></image>
                </div>

                {/notempty}
            </section>
        </div>
    </div>
</section>
{/block}
{block name="script"}
<script type="text/javascript">
    function login(uid, psd) {
        var index = layer.load('正在登陆，请耐心等待');
        var url = "{:url('index/Index/admin_login')}";
        $.post(url, {id: uid, psd: psd}, function (data) {
            layer.msg(data.msg);
            layer.closeAll();
            if (data.code == 1) {
                targetBlank(data.url);
            }
        }, "json");
        return false;
    }
</script>
{/block}
{block name="footer"}
{/block}

